// 创造store对象
import { applyMiddleware, createStore } from "redux";
import { combineReducers } from "redux";
import {composeWithDevTools}from 'redux-devtools-extension'
import thunk from 'redux-thunk'
// 引入count组件的reducer
import countReducer from './reduces/count'
import personReducer from './reduces/person'
const allReducer=combineReducers({countRe:countReducer,personRe:personReducer})
//如果我们有异步action
export default createStore(allReducer,composeWithDevTools(applyMiddleware(thunk)))
